﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Myotragus.Data.RepositoryExtensions;
using Myotragus.Store.Model.DefaultRepositories;
using Myotragus.Store.Model.Helpers;
using Myotragus.Store.Models;

namespace Myotragus.Store.Controllers
{
	public class CategoryController : Controller
	{
		private ICategoryRepository _repository;
		public ICategoryRepository Repository
		{
			get { return _repository ?? (_repository = Core.Container.Resolve<ICategoryRepository>()) ;}
		}

		public ActionResult Index()
		{
			return View(Repository.FindAll(CultureHelper.Current.LCID));
		}

		public ActionResult SelectedCategories()
		{
			return View(Repository.FindAll(CultureHelper.Current.LCID));
		}
	}
}
